luci-app-frpc: Add the bind_addr & bind_port options to the visitor role.
authorRoc Lai <[email protected]>
Tue, 21 Oct 2025 15:19:44 +0000 (23:19 +0800)
committerPaul Donald <[email protected]>
Thu, 23 Oct 2025 01:06:02 +0000 (03:06 +0200)
Fix: https://github.com/openwrt/luci/issues/8024

Signed-off-by: Roc Lai <[email protected]>
applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js
applications/luci-app-frpc/po/zh_Hans/frpc.po
applications/luci-app-frpc/po/zh_Hant/frpc.po

index ab6e061e1011839f59add2c4269bdc6a43c1cf2d..a1bf2442cc4f50babd5b903e1f8ce694871ecf01 100644 (file)
@@ -69,6 +69,8 @@ var httpProxyConf = [
 var stcpProxyConf = [
        [form.ListValue, 'role', _('Role'), undefined, {values: ['server', 'visitor']}],
        [form.Value, 'server_name', _('Server name'), undefined, {depends: [{role: 'visitor'}]}],
+       [form.Value, 'bind_addr', _('Bind addr'), undefined, {depends: [{role: 'visitor'}]}],
+       [form.Value, 'bind_port', _('Bind port'), undefined, {depends: [{role: 'visitor'}]}],
        [form.Value, 'sk', _('Sk')],
 ];
 
index 5a0e638c6d07a57e1e1249ef8e780110998cfd65..98c4436c25d8e2fecc5238dbb0889b276f3405e4 100644 (file)
@@ -342,6 +342,14 @@ msgstr "崩溃时重启"
 msgid "Role"
 msgstr "角色"
 
+#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:72
+msgid "Bind addr"
+msgstr "绑定地址​​"
+
+#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:73
+msgid "Bind port"
+msgstr "绑定端口"
+
 #: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:13
 msgid "Run daemon as group"
 msgstr "以此组权限运行"
index 3e32636bd47209f9d920d16377a4417348dc5aa5..8a7cd6d372690d1ea351bae0a66d128292a952bd 100644 (file)
@@ -341,6 +341,14 @@ msgstr "崩潰時重生"
 msgid "Role"
 msgstr "角色"
 
+#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:72
+msgid "Bind addr"
+msgstr "綁定位址​​​​"
+
+#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:73
+msgid "Bind port"
+msgstr "綁定埠號​​"
+
 #: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:13
 msgid "Run daemon as group"
 msgstr "以群組執行背景執行"